package com.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

@Data
@TableName("sp_goods_attr")
public class Attr {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer goods_id;
    private Integer attr_id;
    private String attr_value;
    @JsonInclude(JsonInclude.Include.ALWAYS)
    private Double add_price;

    @TableField(exist = false)
    private String attr_name;
    @TableField(exist = false)
    private String attr_sel;
    @TableField(exist = false)
    private String attr_write;
    @TableField(exist = false)
    private String attr_vals;

    public void setId(Integer id) {
        this.id = id;
    }

    public void setGoodsId(Integer goods_id) {
        this.goods_id = goods_id;
    }

    public void setAttrId(Integer attr_id) {
        this.attr_id = attr_id;
    }

    public void setAttrValue(String attr_value) {
        this.attr_value = attr_value;
    }

    public void setAddPrice(Double add_price) {
        this.add_price = add_price;
    }

    public void setAttrName(String attr_name) {
        this.attr_name = attr_name;
    }

    public void setAttrSel(String attr_sel) {
        this.attr_sel = attr_sel;
    }

    public void setAttrWrite(String attr_write) {
        this.attr_write = attr_write;
    }

    public void setAttrVals(String attr_vals) {
        this.attr_vals = attr_vals;
    }
}
